package com.lyw.utils;

import java.util.Random;

public class DelayUtil {

    private static final int START = 200;
    private static final int END = 300;
    private static final int MOUSE = 500;

    private DelayUtil() {}

    public static final Random RANDOM = new Random();

    public static int getStartRandomDelayTime() {

        return START + RANDOM.nextInt(150);
    }

    public static int getEndRandomDelayTime() {

        return END + RANDOM.nextInt(50);
    }

    public static int getMouseMoveDelayTime() {

        return MOUSE + RANDOM.nextInt(200);
    }

    public static int getStartRandomDelayTime(int time) {

        return time + RANDOM.nextInt(150);
    }
    public static int getEndRandomDelayTime(int time) {

        return time + RANDOM.nextInt(150);
    }

    public static int getStartRandomDelayTime(int time, int delay) {

        return time + RANDOM.nextInt(delay);
    }

    public static int getEndRandomDelayTime(int time, int delay) {

        return time + RANDOM.nextInt(delay);
    }
}
